package com.neno.common;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: root
 * @Date: 2018/11/9 0:48
 */
public class DateUtils {
    private static final String pattern = "yyyy-MM-dd HH:mm:ss";

    public static String dateFormat(Date date) {
        DateFormat dateFormat = new SimpleDateFormat(pattern);
        return dateFormat.format(date).toString();
    }
}
